package com.alex.designPattern.proxy.staticProxy;

import com.alex.designPattern.HibernateDao;
import com.alex.designPattern.IbatitsDao;

public class Client {

	public static void main(String[] args) {
		DaoProxy proxy = new DaoProxy();
		
		HibernateDao hDao = new HibernateDao();
		proxy.setDao(hDao);
		System.out.println(proxy.getById());
		
		
		IbatitsDao iDao = new IbatitsDao();
		proxy.setDao(iDao);
		System.out.println(proxy.getById());
	}

}
